a11y: Make things appear on focus in
authorMatthias Clasen <mclasen@redhat.com>
Tue, 20 Apr 2021 00:39:32 +0000 (20:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Apr 2021 00:39:32 +0000 (20:39 -0400)
We are starting with a pretty empty a11y object tree,
and we want orca to bring more of it into existence
by navigating the tree. But that only happens when we
send it events. Primarily focus events, which come in
from GTK via the platform_change mechanism. So realize
the context when we are sending platform_changes,
otherwise, orca never gets the mesage.

gtk/gtkatcontext.c

index 83c9be2a870c80462a3874aa4b61c1ad1f7f3a88..709e0f063f5ba280efb17a2e80eccf444225c78c 100644 (file)
@@ -1172,8 +1172,7 @@ void
 gtk_at_context_platform_changed (GtkATContext                *self,
                                  GtkAccessiblePlatformChange  change)
 {
-  if (!self->realized)
-    return;
+  gtk_at_context_realize (self);
 
   GTK_AT_CONTEXT_GET_CLASS (self)->platform_change (self, change);
 }